<template>
  <div class="discover">
    <!-- 它自己的导航 -->
    <div class="nav">
      <router-link to="/discover/tuijian">推荐</router-link>
      <router-link to="/discover/toplist">排行榜</router-link>
      <router-link to="/discover/playlist">歌单</router-link>
    </div>

    <!-- 二级路由 -->
    <router-view />
  </div>
</template>

<script>
export default {

}
</script>

<style scoped>
.discover {
    /* 一定要给，不然没有高度是看不到图片的 */
    height: 100vh;
}

.nav {
  height: 20px;
  background: #f00;
  display: flex;
}
.nav a{
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #fff;
}

.nav a.router-link-exact-active {
  color: #0f0;
}
</style>